package ch03.decoration;

import ch03.component.Beverage;

/**
 * Created by lenovo on 2017/11/11.
 */
public class Mocha extends CondimentDecorator {
    Beverage beverage;

    public  Mocha(Beverage beverage){
        this.beverage=beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+",Mocha";
    }

    @Override
    public double cost() {
        return beverage.cost()+.20;
    }
}
